package twentyOne;

/**
 * @author zzb
 * @since 2021-01-14
 */
public class Test {
  public static void main(String[] args) {
    Context ctx = new Context(new StrategyImplA());
    ctx.doMethod();//这是第一个实现
    ctx = new Context(new StrategyImplB());
    ctx.doMethod();//这是第二个实现
    ctx = new Context(new StrategyImplC());
    ctx.doMethod();//这是第三个实现
  }
}
